<!DOCTYPE html>
<html xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">
<ui:composition template="templates/master.xhtml">
	<ui:define name="content">

		<h:form id="chartForm" rendered="false">
			<p:pieChart id="accounts" 
				live="true" 
				refreshInterval="3000"
				value="#{accountQuery.results}" 
				var="account"
				categoryField="#{account.name}" 
				dataField="#{account.balance}" />
		</h:form>

	</ui:define>
</ui:composition>
</html>
